<?php
/* @var $this BeritaController */
/* @var $model Berita */
/* @var $form CActiveForm */
?>
<div id="content">
<div class="form">

<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'berita-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'judul'); ?>
		<?php echo $form->textField($model,'judul',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'judul'); ?>
	</div>

	<div class="tip">
		 <?php echo $form->labelEx($model,'isi'); ?>	
		 <?php
		$this->widget('application.extensions.tinymce.ETinyMce',
                array(
                    'attribute'=>'isi',
                     'useSwitch' => false,
                    'model'=>$model,
                    'editorTemplate'=>'full',
                   

                    )
                ); 
				?>
		<?php echo $form->error($model,'isi'); ?>
	</div></br>

	<div class="row buttons">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType'=>'submit',
            'type'=>'primary',
            'label'=>'Create',
        )); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
</div>